import matplotlib.pyplot as plt
import numpy as np

if __name__ == '__main__':
    x = np.linspace(0, 10, 100)

    sin = np.sin(x)
    cos = np.cos(x)
    print(sin)
    print(cos)

    plt.plot(x, sin, color='r', label='sin(x)')
    plt.plot(x, cos, color='b', label='cos(x)')

    plt.legend(loc=3)
    plt.grid()
    plt.xlim(0, 10)
    plt.ylim(-1, 1)
    plt.title('sin(x) and cos(x) curve')
    plt.show()
